/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: DcmDspSvc27.c
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: Dcm
*
* Revision:
* ------------------------------------------------------------------------------
* v0.1: 
* --Yueting.Ben, 2024-03-22 
* --Initial release

*******************************************************************************/

/** HEADER FILES **/
#include "DcmDspSvc27Cfg.h"
#include "DcmDslCfg.h"


/** MACRO DEFINITION **/


/** TYPEDEF DEFINITION **/


/** LOCAL DATA DECLARATION **/
const DcmDspSecurityCfgType DcmDspSecurityLocked;
const DcmDspSecurityCfgType DcmDspSecurityLev1;

const DcmDspSecurityCfgType* DcmDspSecurityCfg[DCM_SEC_LEV_MAX];


/** LOCAL DATA **/
const DcmDspSecurityCfgType DcmDspSecurityLocked = 
{
    DCM_SEC_LEV_LOCKED, /* secLevel */
    0u, /* secNumAttDelay */
    0u, /* secDelayTime */
    4u, /* seedSize */
    4u, /* keySize */
    0u, /* adrSize */
    0u, /* attemptCounterEnabled */
    0u, /* delayTimeOnBoot */
    DCM_NULL_PROCESSOR, /* getAttemptCounterFnc */
    DCM_NULL_PROCESSOR, /* setAttemptCounterFnc */
    DCM_NULL_PROCESSOR, /* securityGetSeedFnc */
    DCM_NULL_PROCESSOR /* securityCompareKeyFnc */
};

const DcmDspSecurityCfgType DcmDspSecurityLev1 = 
{
    DCM_SEC_LEV_1_UNLOCKED, /* secLevel */
    0u, /* secNumAttDelay */
    0u, /* secDelayTime */
    4u, /* seedSize */
    4u, /* keySize */
    0u, /* adrSize */
    0u, /* attemptCounterEnabled */
    0u, /* delayTimeOnBoot */
    DCM_NULL_PROCESSOR, /* getAttemptCounterFnc */
    DCM_NULL_PROCESSOR, /* setAttemptCounterFnc */
    AppDiag_Security_Level1_GetSeed, /* securityGetSeedFnc */
    AppDiag_Security_Level1_CompareKey /* securityCompareKeyFnc */
};


const DcmDspSecurityCfgType* DcmDspSecurityCfg[DCM_SEC_LEV_MAX] = 
{   
    (DcmDspSecurityCfgType*)&DcmDspSecurityLev1,
    (DcmDspSecurityCfgType*)&DcmDspSecurityLev1,
    (DcmDspSecurityCfgType*)&DcmDspSecurityLev1
};
